docs: expand aggregating indexes guidance#11035
Open
AvilaJulio wants to merge 1 commit into
Open
Conversation
Explain how regular and aggregating indexes interact within a single pre-aggregation: Cube Store prefers a qualifying aggregating index and falls back to regular indexes otherwise. Add a regular-vs-aggregate comparison table, eligibility requirements (additive measures only; all query dimensions and filters must be index columns), a worked example showing both index types and which query each routes to, and a constraint note in the pre-aggregations reference. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Expands the documentation on pre-aggregation indexes and aggregating indexes. The previous text described aggregating indexes in isolation and left it unclear how they relate to regular indexes or when to choose one over the other.
Changes
docs-mintlify/docs/pre-aggregations/using-pre-aggregations.mdx— reworked the "Aggregating indexes" section:sum/count/min/max/countDistinctApprox— notavgor exactcountDistinct), and all query dimensions and filters must be columns of the index.docs-mintlify/reference/data-modeling/pre-aggregations.mdx— added a<Note>to thetypeoption documenting the same eligibility constraints.Notes
/docs-mintlify); the legacy/docssite was intentionally not touched.optimal_index_by_score/check_aggregates_exprinrust/cubestore/.../queryplanner/planning.rs).🤖 Generated with Claude Code